<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<isperp:processProcesser processId="${model.processId }"></isperp:processProcesser>

<div class="header">
	<h3>报废列表</h3>
</div>
<table class=" form-table">
	<tr>
		<td class="td1">报废编号：</td>
		<td class="td2">${model.code }</td>
		<td class="td1">报废日期：</td>
		<td class="td2"><fmt:formatDate value="${model.discardDate}"
				pattern="yyyy-MM-dd" />
		</td>
	</tr>
	<tr>
		<td class="td1">申请人：</td>
		<td class="td2">${model.applyManName }</td>
		<td class="td1">项目：</td>
		<td class="td2"><isperp:relationLabel moduleUrl="project/project"
				idValue="${model.projectId }" displayColumn="name" id="projectId"></isperp:relationLabel>
		</td>
	</tr>
	<tr>
		<td class="td1">描述：</td>
		<td class="td2" colspan="3">${model.memo }</td>
	</tr>
	<tr>
		<td class="td1">填表人：</td>
		<td class="td2"><label>${model.creatorName }</label>
		</td>
	</tr>
	<tr>
		<td class="td1">附件：</td>
		<td class="td2" colspan="3"><isperp:uploader readonly="true"
				sourceId="${model.id }" id="sptFiles"></isperp:uploader>
		</td>
	</tr>
</table>
<isperp:grid
		url="sparepart/sparepartIn/listSparepartCi?sparepartId=${model.id }"
		gridId="sparepartInCiDetailGrid" showPager="false"
		showSearchbar="false" cusDialogSize="big"
	    cusFormatterActions="false">
		<jsp:attribute name="toolbar">
		<isperp:toolbar id="iconToolbar">
		   <div style="float:left;" class="header">
					<h3>报废设备清单</h3>
				</div>
		</isperp:toolbar>
		</jsp:attribute>

		<jsp:body>
		<isperp:column name="id" title="id" hidden="true"></isperp:column>
		<isperp:column name="code" title="编号" width="150">
		</isperp:column>
		<isperp:column name="name" title="名称" width="100">
		</isperp:column>
		<isperp:column name="confCategoryName" title="分类" width="120">   
		</isperp:column>
		<isperp:column name="statusTemp" title="状态" width="120"
				>   
		</isperp:column>
		<isperp:column name="locationName" title="位置" width="120">   
		</isperp:column>
		<isperp:column name="useStaffNameTemp" title="责任人" width="120">   
		</isperp:column>
	</jsp:body>
	</isperp:grid>



<isperp:buttonList>
	<isperp:processButtons processKey="sparepartDiscardProcess"
		viewOnly="true" processId="${model.processId }"
		businessKey="${model.id }"></isperp:processButtons>
</isperp:buttonList>
<div class="header">
	<h3>关联流程</h3>
</div>
<isperp:processRelation businessKey="${model.id }" readonly="true"
	processKey="sparepartDiscardProcess"></isperp:processRelation>

